﻿using System;
using System.Collections.Generic;
using System.Text;

namespace NetCoreCMS.Models
{
    /// <summary>
    /// 系统配置实体类
    /// </summary>
    
    public class Sysconfig
    {
        #region 主站基本信息==================================
        /// <summary>
        /// 网站名称
        /// </summary>
        public string webname { get; set; }
        /// <summary>
        /// 网站域名
        /// </summary>
        public string weburl { get; set; }
        /// <summary>
        /// 公司名称
        /// </summary>
        public string webcompany { get; set; }
        /// <summary>
        /// 通讯地址
        /// </summary>
        public string webaddress { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string webtel { get; set; }
        /// <summary>
        /// 传真号码
        /// </summary>
        public string webfax { get; set; }
        /// <summary>
        /// 管理员邮箱
        /// </summary>
        public string webmail { get; set; }
        /// <summary>
        /// 网站备案号
        /// </summary>
        public string webcrod { get; set; }
        #endregion

        #region 功能权限设置==================================
        /// <summary>
        /// 开启会员功能
        /// </summary>
        public int memberstatus { get; set; } = 1;
        /// <summary>
        /// 开启评论审核
        /// </summary>
        public int commentstatus { get; set; } = 0;
        /// <summary>
        /// 后台管理日志
        /// </summary>
        public int logstatus { get; set; } = 0;
        /// <summary>
        /// 是否关闭网站
        /// </summary>
        public int webstatus { get; set; } = 1;
        /// <summary>
        /// 关闭原因描述
        /// </summary>
        public string webclosereason { get; set; }
        /// <summary>
        /// 网站统计代码
        /// </summary>
        public string webcountcode { get; set; }
        #endregion

        #region 短信平台设置==================================
        /// <summary>
        /// 短信签名
        /// </summary>
        public string smssignname { get; set; }
        /// <summary>
        /// 短信平台登录账户名
        /// </summary>
        public string smsusername { get; set; }
        /// <summary>
        /// 短信平台登录密码
        /// </summary>
        public string smspassword { get; set; }
        #endregion

        #region 邮件发送设置==================================
        /// <summary>
        /// STMP服务器
        /// </summary>
        public string emailsmtp { get; set; }
        /// <summary>
        /// 是否启用SSL加密连接
        /// </summary>
        public int emailssl { get; set; } = 0;
        /// <summary>
        /// SMTP端口
        /// </summary>
        public int emailport { get; set; } = 25;
        /// <summary>
        /// 发件人地址
        /// </summary>
        public string emailfrom { get; set; }
        /// <summary>
        /// 邮箱账号
        /// </summary>
        public string emailusername { get; set; }
        /// <summary>
        /// 邮箱密码
        /// </summary>
        public string emailpassword { get; set; }
        /// <summary>
        /// 发件人昵称
        /// </summary>
        public string emailnickname { get; set; }
        #endregion

        #region 文件上传设置==================================
        /// <summary>
        /// 附件上传目录
        /// </summary>
        public string filepath { get; set; }
        /// <summary>
        /// 附件保存方式
        /// </summary>
        public int filesave { get; set; } = 1;
        /// <summary>
        /// 允许匿名上传(0否1是)
        /// </summary>
        public int fileanonymous { get; set; } = 0;
        /// <summary>
        /// 编辑器远程图片上传
        /// </summary>
        public int fileremote { get; set; } = 0;
        /// <summary>
        /// 附件上传类型
        /// </summary>
        public string fileextension { get; set; }
        /// <summary>
        /// 视频上传类型
        /// </summary>
        public string videoextension { get; set; }
        /// <summary>
        /// 文件上传大小
        /// </summary>
        public int attachsize { get; set; } = 0;
        /// <summary>
        /// 视频上传大小
        /// </summary>
        public int videosize { get; set; } = 0;
        /// <summary>
        /// 图片上传大小
        /// </summary>
        public int imgsize { get; set; } = 0;
        /// <summary>
        /// 图片最大高度(像素)
        /// </summary>
        public int imgmaxheight { get; set; } = 0;
        /// <summary>
        /// 图片最大宽度(像素)
        /// </summary>
        public int imgmaxwidth { get; set; } = 0;
        /// <summary>
        /// 生成缩略图高度(像素)
        /// </summary>
        public int thumbnailheight { get; set; } = 0;
        /// <summary>
        /// 生成缩略图宽度(像素)
        /// </summary>
        public int thumbnailwidth { get; set; } = 0;
        /// <summary>
        /// 缩略图生成方式
        /// </summary>
        public string thumbnailmode { get; set; } = "Cut";
        /// <summary>
        /// 图片水印类型
        /// </summary>
        public int watermarktype { get; set; } = 0;
        /// <summary>
        /// 图片水印位置
        /// </summary>
        public int watermarkposition { get; set; } = 9;
        /// <summary>
        /// 图片生成质量
        /// </summary>
        public int watermarkimgquality { get; set; } = 80;
        /// <summary>
        /// 图片水印文件
        /// </summary>
        public string watermarkpic { get; set; }
        /// <summary>
        /// 水印透明度
        /// </summary>
        public int watermarktransparency { get; set; } = 10;
        /// <summary>
        /// 水印文字
        /// </summary>
        public string watermarktext { get; set; }
        /// <summary>
        /// 文字字体
        /// </summary>
        public string watermarkfont { get; set; }
        /// <summary>
        /// 文字大小(像素)
        /// </summary>
        public int watermarkfontsize { get; set; } = 12;
        /// <summary>
        /// 文件服务器(本地localhost、阿里云aliyun、腾讯云qcloud)
        /// </summary>
        public string fileserver { get; set; } = "localhost";
        /// <summary>
        /// 阿里云AccessKeyId
        /// </summary>
        public string osssecretid { get; set; }
        /// <summary>
        /// 阿里云AccessKeySecret
        /// </summary>
        public string osssecretkey { get; set; }
        /// <summary>
        /// 阿里云存储空间名称
        /// </summary>
        public string ossbucket { get; set; }
        /// <summary>
        /// 阿里云区域外网(不含http)
        /// </summary>
        public string ossendpoint { get; set; }
        /// <summary>
        /// 自定义访问域名
        /// </summary>
        public string ossdomain { get; set; }
        #endregion

        #region 安装初始化设置================================
        /// <summary>
        /// 加密字符串
        /// </summary>
        public string sysencryptstring { get; set; } = "NetCoreCMS";
        #endregion
    }
}
